package scau.erps.service;

import java.util.List;

import scau.erps.entity.Line;


/**
 * 生产线服务类接口
 * @author outsider 
 * 
 */
public interface LineService {
	public void buyLine(int team_id,int lineNo,String product,String type);
	public int[] updateBuyLine(int team_id);
	public int sellLine(int team_id,int lineNo);
	public boolean switchLine(int team_id,int lineNo,String product);
	public int updateSwitchLine(int team_id);
	public int repairLine(int team_id);
	public int depreciateLine(int team_id);
    public List<Line> getLineByTeamId(int team_id);
    public Line getLineByLineNo(int team_id,int lineNo);
    public List<Line> getAllLine();//获取所有生产线信息@author FYJ
    public List<Line> getLine(int team_Id, String type, String status);//查找一个用户@author FYJ
    public Line getLineById(int lineId);//查找一条生产线@author FYJ
    public void updateLine(Line line);//更新status状态@author FYJ
    public List<Line> getLineByTime(int team_Id, String time);//查找符合条件的用户@author FYJ
}
